<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="utf-8" />
    <link rel="icon" href="%PUBLIC_URL%/favicon.ico" />
    <meta name="viewport" content="width=device-width, initial-scale=1" />
    <meta
      name="description"
      content="Web site created using create-react-app"
    />
    <link rel="apple-touch-icon" href="%PUBLIC_URL%/logo192.png" />
    <link rel="manifest" href="%PUBLIC_URL%/manifest.json" />
    <title>React App</title>
    <script>
      window.addScript1 = function () {
        let sc = document.createElement('script');
        sc.src = 'http://localhost:2444/a.js';
        sc.onload = function (){
          // document.head.removeChild(sc);
          // sc.parentNode.removeChild(sc);
        }
        document.head.appendChild(sc);
      }
      // console.log(window,window.addScript1);
      window.addScript1();
    </script>
  </head>
  <body>
    <noscript>You need to enable JavaScript to run this app.</noscript>
    <div id="root"></div>
  </body>
</html>
